package org.example.base.websocket.dao;

import org.apache.ibatis.annotations.Param;
import org.example.base.websocket.model.ContactModel;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Description:
 * Date: 2024/1/20 01:33
 */
@Repository
public interface WebSocketDao {

    int readMessage(@Param("currentUserId") String currentUserId, @Param("toConnectUserId") String toConnectUserId);


    List<Map<String, Object>> getRecentChatMsg(@Param("currentUserId") String currentUserId, @Param("toConnectUserId") String toConnectUserId);

    Map<String,Object> getContactList(@Param("currentUserId") String currentUserId, @Param("toConnectUserId") String toConnectUserId);
}
